{% extends '_layout/base.html' %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block pageTitle %}
  数据集页面
{% endblock %}

{% block pageHeadExtra %}
  <link rel="stylesheet" href="{% static 'css/storage/view.css' %}">
  <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap-select/1.12.4/css/bootstrap-select.min.css">
  <script src="https://cdn.bootcss.com/bootstrap-select/1.12.4/js/bootstrap-select.min.js"></script>
{% endblock %}

{% block pageBody %}
  {% include 'basic/header.html' %}
  <div class="zone">
  </div>
  <div class="container">
      <h1 id="d-title">--</h1>
      <div class="dl-horizontal">
          <dt>{% trans 'Submitter' %}</dt><dd id="submitter"></dd>
          <dt>{% trans 'Public' %}</dt><dd id="ispublic"></dd>
          <dt>{% trans 'Abstract' %}</dt><dd id="abstract"></dd>
      </div>
{#      5bc0de#}
    <div class="dividing dividing-fix"></div>
    <div class="row">
      <div class="col-md-3">
        <div class="profile-title">
          <span class="label label-primary">{% trans 'Attributes' %}</span>
        </div>
      </div>
      <div class="col-md-9">
          <div class="col-md-1">
            <div class="profile-content">
                <dd id="attributes"></dd>
            </div>
          </div>
          <div class="col-md-8"><span class="label label-default">{% trans 'Rows' %}</span></div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-3">
        <div class="profile-title">
          <span class="label label-primary">{% trans 'Records' %}</span>
        </div>
      </div>
      <div class="col-md-9">
          <div class="col-md-1">
            <div class="profile-content">
                  <dd id="records"></dd>
            </div>
          </div>
          <div class="col-md-8"><span class="label label-default">{% trans 'Colums' %}</span></div>
      </div>
    </div>
    <div class="row">
        <div class="col-md-3">
          <div class="profile-title">
            <span class="label label-primary">{% trans 'Number of uses' %}</span>
          </div>
        </div>
        <div class="col-md-9">
            <div class="col-md-1">
              <div class="profile-content">
                  <dd id="nou">{% trans 'Times' %}</dd>
              </div>
            </div>
            <div class="col-md-8"><span class="label label-default">{% trans 'Times' %}</span></div>
        </div>
    </div>
    <div class="foot-content">
{#      <table align="center">#}
{#        <tr>#}
{#          <td class="first-td">#}
{#            <button id="download" class="btn btn-primary" title="{% trans 'Download' %}" onclick=window.location.href="{% url 'mlplatform:download_data' dataset.id%}">{% trans 'Download' %}</button>#}
{#          </td>#}
{#          {% if query_type == 1 %}#}
{#          <td>#}
{#            <button id="delete" class="btn btn-primary" title="{% trans 'Delete' %}" data-toggle="modal" data-target="#delete-verify">{% trans 'Delete' %}</button>#}
{#          </td>#}
{#          {% endif %}#}
{#        </tr>#}
{#      </table>#}
    </div>
{#    <div class="foot-content">#}
{#      <table align="center">#}
{#        <tr>#}
{#          <td class="first-td">#}
{#            <button id="download" class="btn btn-primary" title="{% trans 'Download' %}" onclick=window.location.href="{% url 'mlplatform:download_data' dataset.id%}">{% trans 'Download' %}</button>#}
{#          </td>#}
{#          {% if query_type == 1 %}#}
{#          <td>#}
{#            <button id="delete" class="btn btn-primary" title="{% trans 'Delete' %}" data-toggle="modal" data-target="#delete-verify">{% trans 'Delete' %}</button>#}
{#          </td>#}
{#          {% endif %}#}
{#        </tr>#}
{#      </table>#}
{#    </div>#}
    <!--在这里放置模态框-->
    <div class="modal fade" id="delete-verify" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
              &times;
            </button>
          </div>
          <div class="modal-body">
            <h4>{% trans 'Are you sure you want to delete it?' %}</h4>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">{% trans 'Sure' %}</button>
          </div>
        </div>
        </div>
        </div>
    <!--模态框结束-->
  </div>
  {% include 'basic/footer.html' %}
{#  {% include '_component/corner-buttons.html' %}#}
{% endblock %}

{% block pageFootExtra %}
  <script src="{% static 'js/storage/view_data.js' %}"></script>
{% endblock %}
